package cn.xopencode.recordservice.rpc.lowroom;

import cn.xopencode.common.framework.vo.CommonResult;
import cn.xopencode.common.framework.vo.PageResult;
import cn.xopencode.recordservice.rpc.lowroom.dto.LowRoomRecordCreateDTO;
import cn.xopencode.recordservice.rpc.lowroom.dto.LowRoomRecordPageDTO;
import cn.xopencode.recordservice.rpc.lowroom.vo.LowRoomRecordPageVO;
import cn.xopencode.recordservice.rpc.lowroom.vo.LowRoomRecordUpdateVO;

/**
 * 低压配电室巡检记录 RPC
 */
public interface LowRoomRecordRpc {
    /**
     * 新增低压配电室巡检记录
     *
     * @param createDTO
     * @return
     */
    CommonResult<Integer> createLowRoomRecord(LowRoomRecordCreateDTO createDTO);

    /**
     * 获得低压配电室巡检记录分页
     *
     * @param pageDTO
     * @return
     */
    CommonResult<PageResult<LowRoomRecordPageVO>> pageLowRoomRecord(LowRoomRecordPageDTO pageDTO);

    /**
     * 根据记录id获取低压配电室巡检记录详情
     * @param id
     * @return
     */
    CommonResult<LowRoomRecordUpdateVO> getLowRoomRecordById(String id);
}
